package com.cqc.zhbjcqc.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.cqc.zhbjcqc.activity.MainActivity;
import com.cqc.zhbjcqc.net.MainRequest;
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu;
import com.lidroid.xutils.exception.HttpException;
import com.lidroid.xutils.http.ResponseInfo;
import com.lidroid.xutils.http.callback.RequestCallBack;

/**
 * Created by ${cqc} on 2016/9/27.
 */

public abstract class BaseFragment extends Fragment {
    public Context context;
    public SlidingMenu menu;

    public BaseFragment() {
        super();
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        context = getContext();
//        menu = ((MainActivity)context).getSlidingMenu();
        menu = ((MainActivity)context).menu;
    }

    @Nullable
    @Override
    public abstract View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState);


}
